package com.gitee.huanminabc.utils_common.enums;

public enum YesOrNoEnum {

    Y("是"),
    N("否");


    /**
     * 存放内容
     */
    final String content;

    YesOrNoEnum(String content) {
        this.content = content;
    }

    //通过名称获取枚举
    public static YesOrNoEnum getEnum(String name) {
        for (YesOrNoEnum e : YesOrNoEnum.values()) {
            if (e.name().equals(name)) {
                return e;
            }
        }
        return null;
    }

}
